import request from '@/utils/request'

// 查询商品期货信息列表
export function queryCmdtFutureInfoList(query) {
    return request({
        url: '/cmdtFutures/queryCmdtFutureInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 新增商品期货信息
export function addCmdtFutureInfo(data) {
    return request({
        url: '/cmdtFutures/addCmdtFutureInfo.action',
        method: 'post',
        data: data
    })
}

// 修改商品期货信息
export function updateCmdtFutureInfo(data) {
    return request({
        url: '/cmdtFutures/updateCmdtFutureInfo.action',
        method: 'put',
        data: data
    })
}

// 删除商品期货信息
export function delCmdtFutureInfo(data) {
    return request({
        url: '/cmdtFutures/delCmdtFutureInfo.action',
        method: 'delete',
        data: data
    })
}

// 查询商品期货行情列表
export function getCmdtFuturePriceList(query) {
    return request({
        url: '/cmdtFutures/queryCmdtPriceList.action',
        method: 'get',
        params: query
    })
}

// 查询商品期货行情曲线信息
export function getCmdtFuturePriceCurve(query) {
    return request({
        url: '/cmdtFutures/queryCmdtPriceCurve.action',
        method: 'get',
        params: query
    })
}

